package com.queue.rabbitmq.listener;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class DLXReceiveListener {

    @RabbitListener(queues = "queue_receive")
    public void receiveMessage(String msg){
        System.out.println("死信队列接收到的消息：" + msg);
    }



}
